package com.javaframe.role.entity;

/**
 * Resource entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable {

	// Fields

	private Integer resourceId;
	private Integer parentResourceId;
	private String resourceName;
	private String description;

	// Constructors

	/** default constructor */
	public Resource() {
	}

	/** minimal constructor */
	public Resource(Integer resourceId) {
		this.resourceId = resourceId;
	}

	/** full constructor */
	public Resource(Integer resourceId, Integer parentResourceId,
			String resourceName, String description) {
		this.resourceId = resourceId;
		this.parentResourceId = parentResourceId;
		this.resourceName = resourceName;
		this.description = description;
	}

	// Property accessors

	public Integer getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(Integer resourceId) {
		this.resourceId = resourceId;
	}

	public Integer getParentResourceId() {
		return this.parentResourceId;
	}

	public void setParentResourceId(Integer parentResourceId) {
		this.parentResourceId = parentResourceId;
	}

	public String getResourceName() {
		return this.resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}